use new style connect, i.e. function pointers (#682)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Sat, 6 Feb 2021 13:55:00 +0000 (06:55 -0700)
committerGitHub <noreply@github.com>
Sat, 6 Feb 2021 13:55:00 +0000 (06:55 -0700)
commit1f76afca0a81d72d3a6596642b8a6101f398c6e2
treec6c9b28b3fd57f6576ead398a89261497f8c478d
parent3784379d0455f0557cca806f6ce4b5c59793b853
use new style connect, i.e. function pointers (#682)

* migrate from old style connects to the new style.

The changes using qOverload were done by hand, the rest were done
with clazy 1.9.

The ones using the TreeAction constructor were not found by clazy
and would require more manual intervention.

Also, I note uic generates old style connects.

* eliminate our TreeAction class in favor of QMenu::addAction method.

It is a mystery to me why we created TreeAction.  The QMenu method existed
in Qt 4.3.  Documentation before 4.3 is scarce.
QMenu::addAction(const QString &text, const QObject *receiver, const char *member, const QKeySequence &shortcut = 0)

* clazy updates gmapdlg connects.

* add TODOs for Qt6 related to qOverload.
12 files changed:
gui/advdlg.cc
gui/donate.cc
gui/filterdlg.cc
gui/filterwidgets.cc
gui/filterwidgets.h
gui/gmapdlg.cc
gui/mainwindow.cc
gui/map.cc
gui/optionsdlg.cc
gui/preferences.cc
gui/processwait.cc
gui/upgrade.cc